package io.renren.modules.question.dto.input;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author liangbaigao
 * @Date 2022/10/9 17:27
 */
@Data
public class Topic2 {
    /**
     * 题目id
     */
    @ApiModelProperty("题目id 更新时传 新增无需传")
    private Long id;

    /**
     * 该题是否需要上传pdf 0否 1是
     */
    @NotNull
    @Max(value = 1)
    @Min(value = 0)
    @ApiModelProperty(value = "该题是否需要上传pdf 0否 1是",required = true)
    private Integer isPdf;

    /**
     * 题目名称
     */
    @NotBlank
    @Length(max = 50)
    @ApiModelProperty(value = "题目名称 限制为50",required = true)
    private String topicName;

    /**
     * 问卷Id
     */
    @ApiModelProperty(value = "问卷Id 更新时传 新增无需传")
    private Long questionId;
}
